package com.design.alex.command;

/**
 * @ClassName : BuyStock
 * @Description : todo
 * @Author : Alex
 * @Date: 2020-02-18 11:43
 */
public class BuyStock implements Order {

    private Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
